<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonSystemButtonBar类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_system_button_bar.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-slots">Protected 槽</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_s_a_ribbon_system_button_bar-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonSystemButtonBar类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>窗口的最大最小化按钮  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_system_button_bar_8h_source.html">SARibbonSystemButtonBar.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonSystemButtonBar 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_system_button_bar.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_system_button_bar_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="class_s_a_ribbon_system_button_bar.html" title="窗口的最大最小化按钮">SARibbonSystemButtonBar</a> class  <a href="class_s_a_ribbon_system_button_bar_1_1_private_data.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a763c917b56d95b41f7f3887508226703" id="r_a763c917b56d95b41f7f3887508226703"><td class="memItemLeft" align="right" valign="top"><a id="a763c917b56d95b41f7f3887508226703" name="a763c917b56d95b41f7f3887508226703"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonSystemButtonBar</b> (QWidget *parent)</td></tr>
<tr class="separator:a763c917b56d95b41f7f3887508226703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fea7aba5409fbbf18c13a651e5d8067" id="r_a9fea7aba5409fbbf18c13a651e5d8067"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9fea7aba5409fbbf18c13a651e5d8067">SARibbonSystemButtonBar</a> (QWidget *parent, Qt::WindowFlags flags)</td></tr>
<tr class="memdesc:a9fea7aba5409fbbf18c13a651e5d8067"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数，强制使用flags，而不是用parent的flags进行构造  <br /></td></tr>
<tr class="separator:a9fea7aba5409fbbf18c13a651e5d8067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25b480256840aa670be931d800e4e1c8" id="r_a25b480256840aa670be931d800e4e1c8"><td class="memItemLeft" align="right" valign="top"><a id="a25b480256840aa670be931d800e4e1c8" name="a25b480256840aa670be931d800e4e1c8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setupMinimizeButton</b> (bool on)</td></tr>
<tr class="separator:a25b480256840aa670be931d800e4e1c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0a84b364ea1f261bd060771a90d13ba" id="r_ad0a84b364ea1f261bd060771a90d13ba"><td class="memItemLeft" align="right" valign="top"><a id="ad0a84b364ea1f261bd060771a90d13ba" name="ad0a84b364ea1f261bd060771a90d13ba"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setupMaximizeButton</b> (bool on)</td></tr>
<tr class="separator:ad0a84b364ea1f261bd060771a90d13ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acec9349881af3579a81ce3566504a5dd" id="r_acec9349881af3579a81ce3566504a5dd"><td class="memItemLeft" align="right" valign="top"><a id="acec9349881af3579a81ce3566504a5dd" name="acec9349881af3579a81ce3566504a5dd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setupCloseButton</b> (bool on)</td></tr>
<tr class="separator:acec9349881af3579a81ce3566504a5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa996dfc7725d45baf52682cbfbd30d79" id="r_aa996dfc7725d45baf52682cbfbd30d79"><td class="memItemLeft" align="right" valign="top"><a id="aa996dfc7725d45baf52682cbfbd30d79" name="aa996dfc7725d45baf52682cbfbd30d79"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateWindowFlag</b> ()</td></tr>
<tr class="separator:aa996dfc7725d45baf52682cbfbd30d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab203f2d6dcf4ce9702b3006bd69adc6f" id="r_ab203f2d6dcf4ce9702b3006bd69adc6f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab203f2d6dcf4ce9702b3006bd69adc6f">updateWindowFlag</a> (Qt::WindowFlags flags)</td></tr>
<tr class="memdesc:ab203f2d6dcf4ce9702b3006bd69adc6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">此函数仅用于控制最小最大化和关闭按钮的显示  <br /></td></tr>
<tr class="separator:ab203f2d6dcf4ce9702b3006bd69adc6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f15ebd0a1e1e400f689b650ff42991b" id="r_a1f15ebd0a1e1e400f689b650ff42991b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1f15ebd0a1e1e400f689b650ff42991b">setButtonWidthStretch</a> (int close=4, int max=3, int min=3)</td></tr>
<tr class="memdesc:a1f15ebd0a1e1e400f689b650ff42991b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置按钮的宽度比例,最终按钮宽度将按照此比例进行设置  <br /></td></tr>
<tr class="separator:a1f15ebd0a1e1e400f689b650ff42991b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd32c0bda987730572a704fc1a835c7a" id="r_afd32c0bda987730572a704fc1a835c7a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afd32c0bda987730572a704fc1a835c7a">setWindowTitleHeight</a> (int h)</td></tr>
<tr class="memdesc:afd32c0bda987730572a704fc1a835c7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">标题栏高度  <br /></td></tr>
<tr class="separator:afd32c0bda987730572a704fc1a835c7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26ec9fa51ba77c536d69cba179de13fb" id="r_a26ec9fa51ba77c536d69cba179de13fb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a26ec9fa51ba77c536d69cba179de13fb">windowTitleHeight</a> () const</td></tr>
<tr class="memdesc:a26ec9fa51ba77c536d69cba179de13fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">标题栏高度  <br /></td></tr>
<tr class="separator:a26ec9fa51ba77c536d69cba179de13fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c17e33003d6312d444bea49af80f365" id="r_a0c17e33003d6312d444bea49af80f365"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0c17e33003d6312d444bea49af80f365">setWindowButtonWidth</a> (int w)</td></tr>
<tr class="memdesc:a0c17e33003d6312d444bea49af80f365"><td class="mdescLeft">&#160;</td><td class="mdescRight">系统按钮的宽度  <br /></td></tr>
<tr class="separator:a0c17e33003d6312d444bea49af80f365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3097f92d2e8a4cb5ee56334e4171c0b5" id="r_a3097f92d2e8a4cb5ee56334e4171c0b5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3097f92d2e8a4cb5ee56334e4171c0b5">windowButtonWidth</a> () const</td></tr>
<tr class="memdesc:a3097f92d2e8a4cb5ee56334e4171c0b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">系统按钮的宽度  <br /></td></tr>
<tr class="separator:a3097f92d2e8a4cb5ee56334e4171c0b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a4b7b9c2767a903baea0f95fd7990a7" id="r_a6a4b7b9c2767a903baea0f95fd7990a7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6a4b7b9c2767a903baea0f95fd7990a7">setWindowStates</a> (Qt::WindowStates s)</td></tr>
<tr class="memdesc:a6a4b7b9c2767a903baea0f95fd7990a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置窗口状态（最大最小化按钮状态）  <br /></td></tr>
<tr class="separator:a6a4b7b9c2767a903baea0f95fd7990a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bd99f087f0452233f0780dfb2df80ff" id="r_a9bd99f087f0452233f0780dfb2df80ff"><td class="memItemLeft" align="right" valign="top">Qt::WindowFlags&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9bd99f087f0452233f0780dfb2df80ff">windowButtonFlags</a> () const</td></tr>
<tr class="memdesc:a9bd99f087f0452233f0780dfb2df80ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">此函数返回的flags仅包括 Qt::WindowCloseButtonHint，Qt::WindowMaximizeButtonHint，Qt::WindowMinimizeButtonHint 三个  <br /></td></tr>
<tr class="separator:a9bd99f087f0452233f0780dfb2df80ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a429984b17a7814012ddbf02c17a855d2" id="r_a429984b17a7814012ddbf02c17a855d2"><td class="memItemLeft" align="right" valign="top"><a id="a429984b17a7814012ddbf02c17a855d2" name="a429984b17a7814012ddbf02c17a855d2"></a>
QAbstractButton *&#160;</td><td class="memItemRight" valign="bottom"><b>minimizeButton</b> () const</td></tr>
<tr class="separator:a429984b17a7814012ddbf02c17a855d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b62f7f7ead0b411f0d0e2a0ff5ead25" id="r_a1b62f7f7ead0b411f0d0e2a0ff5ead25"><td class="memItemLeft" align="right" valign="top"><a id="a1b62f7f7ead0b411f0d0e2a0ff5ead25" name="a1b62f7f7ead0b411f0d0e2a0ff5ead25"></a>
QAbstractButton *&#160;</td><td class="memItemRight" valign="bottom"><b>maximizeButton</b> () const</td></tr>
<tr class="separator:a1b62f7f7ead0b411f0d0e2a0ff5ead25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41bf96e8a0db87443bf1826c2591d9cf" id="r_a41bf96e8a0db87443bf1826c2591d9cf"><td class="memItemLeft" align="right" valign="top"><a id="a41bf96e8a0db87443bf1826c2591d9cf" name="a41bf96e8a0db87443bf1826c2591d9cf"></a>
QAbstractButton *&#160;</td><td class="memItemRight" valign="bottom"><b>closeButton</b> () const</td></tr>
<tr class="separator:a41bf96e8a0db87443bf1826c2591d9cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8fc9b3f7189e3737a4e212bcd238373" id="r_af8fc9b3f7189e3737a4e212bcd238373"><td class="memItemLeft" align="right" valign="top"><a id="af8fc9b3f7189e3737a4e212bcd238373" name="af8fc9b3f7189e3737a4e212bcd238373"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setIconSize</b> (const QSize &amp;ic)</td></tr>
<tr class="separator:af8fc9b3f7189e3737a4e212bcd238373"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75011f10880a388b27b7641f18ac0089" id="r_a75011f10880a388b27b7641f18ac0089"><td class="memItemLeft" align="right" valign="top"><a id="a75011f10880a388b27b7641f18ac0089" name="a75011f10880a388b27b7641f18ac0089"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>iconSize</b> () const</td></tr>
<tr class="separator:a75011f10880a388b27b7641f18ac0089"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a860d447d375a7629edabd23877a39f31" id="r_a860d447d375a7629edabd23877a39f31"><td class="memItemLeft" align="right" valign="top"><a id="a860d447d375a7629edabd23877a39f31" name="a860d447d375a7629edabd23877a39f31"></a>
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>addAction</b> (QAction *a, Qt::ToolButtonStyle buttonStyle=Qt::ToolButtonIconOnly, QToolButton::ToolButtonPopupMode popMode=QToolButton::DelayedPopup)</td></tr>
<tr class="separator:a860d447d375a7629edabd23877a39f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ab25c1e144c777cfcb9b9f5a781bced" id="r_a7ab25c1e144c777cfcb9b9f5a781bced"><td class="memItemLeft" align="right" valign="top"><a id="a7ab25c1e144c777cfcb9b9f5a781bced" name="a7ab25c1e144c777cfcb9b9f5a781bced"></a>
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>addAction</b> (const QString &amp;text, const QIcon &amp;icon, Qt::ToolButtonStyle buttonStyle=Qt::ToolButtonIconOnly, QToolButton::ToolButtonPopupMode popMode=QToolButton::DelayedPopup)</td></tr>
<tr class="separator:a7ab25c1e144c777cfcb9b9f5a781bced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf4fefd59801aab74ebb7552c2bbe9e3" id="r_adf4fefd59801aab74ebb7552c2bbe9e3"><td class="memItemLeft" align="right" valign="top"><a id="adf4fefd59801aab74ebb7552c2bbe9e3" name="adf4fefd59801aab74ebb7552c2bbe9e3"></a>
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>addMenu</b> (QMenu *menu, Qt::ToolButtonStyle buttonStyle=Qt::ToolButtonIconOnly, QToolButton::ToolButtonPopupMode popMode=QToolButton::InstantPopup)</td></tr>
<tr class="separator:adf4fefd59801aab74ebb7552c2bbe9e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e0120f4b28ee27b678294dc39c4d501" id="r_a8e0120f4b28ee27b678294dc39c4d501"><td class="memItemLeft" align="right" valign="top"><a id="a8e0120f4b28ee27b678294dc39c4d501" name="a8e0120f4b28ee27b678294dc39c4d501"></a>
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>addSeparator</b> ()</td></tr>
<tr class="separator:a8e0120f4b28ee27b678294dc39c4d501"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d966e9164ad22d216fbf22edfc72556" id="r_a1d966e9164ad22d216fbf22edfc72556"><td class="memItemLeft" align="right" valign="top"><a id="a1d966e9164ad22d216fbf22edfc72556" name="a1d966e9164ad22d216fbf22edfc72556"></a>
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>addWidget</b> (QWidget *w)</td></tr>
<tr class="separator:a1d966e9164ad22d216fbf22edfc72556"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2f75e154c0d9d56f6092b5ca50c662a" id="r_ab2f75e154c0d9d56f6092b5ca50c662a"><td class="memItemLeft" align="right" valign="top"><a id="ab2f75e154c0d9d56f6092b5ca50c662a" name="ab2f75e154c0d9d56f6092b5ca50c662a"></a>
virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:ab2f75e154c0d9d56f6092b5ca50c662a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9e9c43ed812165796fdabdd620f3bd6" id="r_af9e9c43ed812165796fdabdd620f3bd6"><td class="memItemLeft" align="right" valign="top"><a id="af9e9c43ed812165796fdabdd620f3bd6" name="af9e9c43ed812165796fdabdd620f3bd6"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>eventFilter</b> (QObject *obj, QEvent *event) override</td></tr>
<tr class="separator:af9e9c43ed812165796fdabdd620f3bd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-slots" name="pro-slots"></a>
Protected 槽</h2></td></tr>
<tr class="memitem:a0969fd8b4772decb6c992daee8e5f6cb" id="r_a0969fd8b4772decb6c992daee8e5f6cb"><td class="memItemLeft" align="right" valign="top"><a id="a0969fd8b4772decb6c992daee8e5f6cb" name="a0969fd8b4772decb6c992daee8e5f6cb"></a>
Q_SLOT void&#160;</td><td class="memItemRight" valign="bottom"><b>closeWindow</b> ()</td></tr>
<tr class="separator:a0969fd8b4772decb6c992daee8e5f6cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0449404826e1a78224a3803879b11f21" id="r_a0449404826e1a78224a3803879b11f21"><td class="memItemLeft" align="right" valign="top"><a id="a0449404826e1a78224a3803879b11f21" name="a0449404826e1a78224a3803879b11f21"></a>
Q_SLOT void&#160;</td><td class="memItemRight" valign="bottom"><b>minimizeWindow</b> ()</td></tr>
<tr class="separator:a0449404826e1a78224a3803879b11f21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1815ea71ba66a6dcd0200f4c48aafb16" id="r_a1815ea71ba66a6dcd0200f4c48aafb16"><td class="memItemLeft" align="right" valign="top"><a id="a1815ea71ba66a6dcd0200f4c48aafb16" name="a1815ea71ba66a6dcd0200f4c48aafb16"></a>
Q_SLOT void&#160;</td><td class="memItemRight" valign="bottom"><b>maximizeWindow</b> ()</td></tr>
<tr class="separator:a1815ea71ba66a6dcd0200f4c48aafb16"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a951b6449f853a421032571fd88a0cc55" id="r_a951b6449f853a421032571fd88a0cc55"><td class="memItemLeft" align="right" valign="top"><a id="a951b6449f853a421032571fd88a0cc55" name="a951b6449f853a421032571fd88a0cc55"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>resizeEvent</b> (QResizeEvent *e) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a951b6449f853a421032571fd88a0cc55"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>窗口的最大最小化按钮 </p>
<dl class="section note"><dt>注解</dt><dd>内部有个SARibbonButtonGroupWidget，其ObjectName = SASystemButtonGroup 如果需要qss，可以进行特化处理:</dd></dl>
<div class="fragment"><div class="line"><a class="code hl_class" href="class_s_a_ribbon_button_group_widget.html">SARibbonButtonGroupWidget</a>#SASystemButtonGroup</div>
<div class="ttc" id="aclass_s_a_ribbon_button_group_widget_html"><div class="ttname"><a href="class_s_a_ribbon_button_group_widget.html">SARibbonButtonGroupWidget</a></div><div class="ttdoc">用于管理一组Action,类似于QToolBar</div><div class="ttdef"><b>Definition</b> SARibbonButtonGroupWidget.h:13</div></div>
</div><!-- fragment --><p>SARibbonSystemButtonBar的eventfilter捕获mainwindow的事件,通过eventerfilter来处理mainwindow的事件，避免用户错误的继承resizeEvent导致systembar的位置异常</p>
<p>因此，主窗口需要安装事件过滤器</p>
<div class="fragment"><div class="line">MainWindow::MainWindow(){</div>
<div class="line">   installEventFilter(mWindowButtonGroup);</div>
<div class="line">}</div>
</div><!-- fragment --> </div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a9fea7aba5409fbbf18c13a651e5d8067" name="a9fea7aba5409fbbf18c13a651e5d8067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fea7aba5409fbbf18c13a651e5d8067">&#9670;&#160;</a></span>SARibbonSystemButtonBar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SARibbonSystemButtonBar::SARibbonSystemButtonBar </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>parent</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Qt::WindowFlags</td>          <td class="paramname"><span class="paramname"><em>flags</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造函数，强制使用flags，而不是用parent的flags进行构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td></td></tr>
    <tr><td class="paramname">flags</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a1f15ebd0a1e1e400f689b650ff42991b" name="a1f15ebd0a1e1e400f689b650ff42991b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f15ebd0a1e1e400f689b650ff42991b">&#9670;&#160;</a></span>setButtonWidthStretch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonSystemButtonBar::setButtonWidthStretch </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>close</em><span class="paramdefsep"> = </span><span class="paramdefval">4</span>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>max</em><span class="paramdefsep"> = </span><span class="paramdefval">3</span>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>min</em><span class="paramdefsep"> = </span><span class="paramdefval">3</span></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置按钮的宽度比例,最终按钮宽度将按照此比例进行设置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">close</td><td>关闭按钮比例 </td></tr>
    <tr><td class="paramname">max</td><td>最大化按钮比例 </td></tr>
    <tr><td class="paramname">min</td><td>最小化按钮比例 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0c17e33003d6312d444bea49af80f365" name="a0c17e33003d6312d444bea49af80f365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c17e33003d6312d444bea49af80f365">&#9670;&#160;</a></span>setWindowButtonWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonSystemButtonBar::setWindowButtonWidth </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>系统按钮的宽度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6a4b7b9c2767a903baea0f95fd7990a7" name="a6a4b7b9c2767a903baea0f95fd7990a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a4b7b9c2767a903baea0f95fd7990a7">&#9670;&#160;</a></span>setWindowStates()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonSystemButtonBar::setWindowStates </td>
          <td>(</td>
          <td class="paramtype">Qt::WindowStates</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置窗口状态（最大最小化按钮状态） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="afd32c0bda987730572a704fc1a835c7a" name="afd32c0bda987730572a704fc1a835c7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd32c0bda987730572a704fc1a835c7a">&#9670;&#160;</a></span>setWindowTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonSystemButtonBar::setWindowTitleHeight </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>h</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>标题栏高度 </p>
<p>标题栏高度会影响sizeHint </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab203f2d6dcf4ce9702b3006bd69adc6f" name="ab203f2d6dcf4ce9702b3006bd69adc6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab203f2d6dcf4ce9702b3006bd69adc6f">&#9670;&#160;</a></span>updateWindowFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonSystemButtonBar::updateWindowFlag </td>
          <td>(</td>
          <td class="paramtype">Qt::WindowFlags</td>          <td class="paramname"><span class="paramname"><em>flags</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>此函数仅用于控制最小最大化和关闭按钮的显示 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">flags</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9bd99f087f0452233f0780dfb2df80ff" name="a9bd99f087f0452233f0780dfb2df80ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bd99f087f0452233f0780dfb2df80ff">&#9670;&#160;</a></span>windowButtonFlags()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Qt::WindowFlags SARibbonSystemButtonBar::windowButtonFlags </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>此函数返回的flags仅包括 Qt::WindowCloseButtonHint，Qt::WindowMaximizeButtonHint，Qt::WindowMinimizeButtonHint 三个 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a3097f92d2e8a4cb5ee56334e4171c0b5" name="a3097f92d2e8a4cb5ee56334e4171c0b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3097f92d2e8a4cb5ee56334e4171c0b5">&#9670;&#160;</a></span>windowButtonWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonSystemButtonBar::windowButtonWidth </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>系统按钮的宽度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a26ec9fa51ba77c536d69cba179de13fb" name="a26ec9fa51ba77c536d69cba179de13fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26ec9fa51ba77c536d69cba179de13fb">&#9670;&#160;</a></span>windowTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonSystemButtonBar::windowTitleHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>标题栏高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_system_button_bar_8h_source.html">SARibbonSystemButtonBar.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonSystemButtonBar.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_system_button_bar.html">SARibbonSystemButtonBar</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
